package config

var DefaultRedisConfig = &RedisConfig{
	Host:     "127.0.0.1",
	Password: "",
	Port:     "6379",
	Database: 0,
}

type RedisConfig struct {
	Host        string `mapstructure:"host"`
	Port        string `mapstructure:"port"`
	Password    string `mapstructure:"password"`
	Database    int    `mapstructure:"database"`
	MaxIdle     int    `mapstructure:"max_idle"`
	MaxActive   int    `mapstructure:"max_active"`
	IdleTimeout string `mapstructure:"idle_timeout"`
}
